#include "SelectServer.hpp"

void Usage(const char *str)
{
    std::cout << "请输入：" << str << " 端口号" << std::endl;
    exit(0);
}

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
    }

    EnableConsolseSyncStrategy();
    uint16_t port=std::stoi(argv[1]);
    std::unique_ptr<SelectServer> ptr = std::make_unique<SelectServer>(port);
    ptr->Run();

    return 0;
}